<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>用户管理信息</title>
		<link rel="stylesheet" type="text/css"
			href="${pageContext.request.contextPath}/css/public.css">
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/sorttable.js"></script>
		<script language="JavaScript"
			src="${pageContext.request.contextPath}/js/public.js"></script>
		<script  language="JavaScript"
			src="${pageContext.request.contextPath}/js/validate.js"></script>
		<script type="text/javascript">
	  	function validate(){	
			var bomGroupCode = document.getElementById("bomGroupCode");
			var bomGroupName = document.getElementById("bomGroupName");
					
			if(!isNotNull(bomGroupCode,'BOM组代码')||!f_check_ZhOrNumOrLett(bomGroupCode,'BOM组代码'))
				return false ;	
			
			if(!(isNotNull(bomGroupName,'BOM组名称')&&f_check_ZhOrNumOrLett(bomGroupName,'BOM组名称')))
				return false ;		
		} 
		</script>
		<s:debug></s:debug>
	</head>
	<body>
		<div id="info_all" style="width:300px;">
			<div id="info_top">
				用户修改
			</div>
				<div  style="width:280px;margin-top:0px;" >
				<s:form action="editBOMGroup" onsubmit="return validate()" theme="simple">
				<input type="hidden" name="editedBOMGroup.bomgroupId"  size="12" value="${editedBOMGroup.bomgroupId}"/>
					<table style="margin-top:10px;background:#fbfbfb;color:#403040;" align="center">
						<tr>
							<td>
								BOM组代码&nbsp;：
							</td>
							<td align="center">
								<input type="text" name="editedBOMGroup.bomgroupCode" id="bomGroupCode" size="12" value="${editedBOMGroup.bomgroupCode}"/>
							</td>
						</tr>
						<tr>
							<td>
								BOM组名称&nbsp;：
							</td>
							<td align="center">
								<input type="text" name="editedBOMGroup.bomgroupName" id="bomGroupName" size="12" value="${editedBOMGroup.bomgroupName}"/>
							</td>
						</tr>
						<tr>
							<td>
								BOM父组&nbsp;：
								
							</td>
								<td align="left" >
						  		<s:select   name="editedBOMGroup.parentId" list="#request.bomList" listKey="bomGroupID" 
								listValue="bomGroupName" headerKey="0" headerValue="" 
								value="%{editedBOMGroup.parentId}"
								/>  
						</td>
						</tr>
						<tr>
							<td>
								&nbsp;&nbsp;
								<input type="submit" value="保存" onFocus="this.blur()"
									onmouseover="this.className='btnover'"
									onmouseout="this.className='btnout'" class="btnsize" />
							</td>
							<td align="center">
								<input type="button" value="返回" onFocus="this.blur()" onclick="history.go(-1)"
									onmouseover="this.className='btnover'"
									onmouseout="this.className='btnout'" class="btnsize" />

							</td>
						</tr>
					</table>
							</s:form>
				</div>
		</div>

	</body>
</html>